import Vue from 'vue';
import App from './App.vue';
import Antd from 'ant-design-vue';
import 'ant-design-vue/dist/antd.css';
import Vuex from 'vuex';
Vue.use(Vuex);
import VueSocketIo from 'vue-socket.io';
// import VueVirtualScroller from 'vue-virtual-scroller';
// import 'vue-virtual-scroller/dist/vue-virtual-scroller.css';
// Vue.use(VueVirtualScroller);
Vue.config.productionTip = false;

Vue.use(Antd);

Vue.use(new VueSocketIo({
  debug: true,
  connection: 'http://localhost:3000'
}))

const store = new Vuex.Store({
  state: {
    count: 0
  },
  mutations: {
    func(state) {
      state.count++;
    }
  }
})

new Vue({
  Store: store,
  render: h => h(App),
}).$mount('#app')
